<?php

require_once(WSB_MODULES_PATH .'sherpa/models/Address.php');

class Sherpa_Model_Addresses extends WSB_Model_Collection
{

	/**
	 * @var string
	 */
	protected $_modelClass = 'Sherpa_Model_Address';

	/**
	 * @param string $key
	 * @param mixed $value
	 * @return boolean
	 */
	public function contains($key, $value) {
		foreach($this AS $model) {
			if($model->$key == $value) {
				return true;
			}
		}
		return false;
	}

}
